package com.tron.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 订单实体类
 */
@Data
@TableName(value ="pay_order")
public class PayOrder {

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "app_id")
    private String appId; //appID

    @TableField(value = "app_name")
    private String appName; //app名称

    @TableField(value = "amount")
    private Long amount; //金额

    @TableField(value = "callback_url")
    private String callbackUrl; //回调URL

    @TableField(value = "coin_type")
    private Integer coinType; //货币类型

    @TableField(value = "user_id")
    private Long userId; //用户id

    @TableField(value = "remark")
    private String remark; //备注信息

    @TableField(value = "address")
    private String address; // 地址

    @TableField(value = "private_key")
    private String privateKey; //私钥

    @TableField(value = "create_time")
    private Date createTime; //创建时间

    @TableField(value = "status")
    private Integer status;//状态 0=未完成 1=已完成 -1=已超时
}
